<?php
class childAction extends  sfActions
{
	public function execute()
	{
		if($this->hasRequestParameter('id')){
			$this->id = $this->getRequestParameter('id');
			$this->pager = new sfPropelPager('FaqItems', 20);
			$c = new Criteria();
			$c->add(FaqItemsPeer::PARENT_ID,$this->id);
			$this->pager->setCriteria($c);
		    $this->pager->setPage($this->getRequestParameter('page', $this->getUser()->getAttribute('page', 1, 'sf_admin/faq_items')));
		    $this->pager->init();
		    // save page
		    if ($this->getRequestParameter('page')) {
		        $this->getUser()->setAttribute('page', $this->getRequestParameter('page'), 'sf_admin/faq_items');
		    }
		}    	
  	}
	
}
?>